import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqPlayerArenaResultHelper } from "./SeqPlayerArenaResultHelper";
import { SArenaQuery } from "./SArenaQuery";
type int = number;
//class SArenaQueryResult
    
    export  class SArenaQueryResult extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SArenaQueryResult();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.query.__write(arg1);
            arg1.writeInt(this.totalCount);
            SeqPlayerArenaResultHelper.write(arg1, this.results);
            arg1.writeInt(this.myRank);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.query = new SArenaQuery();
            this.query.__read(arg1);
            this.totalCount = arg1.readInt();
            this.results = SeqPlayerArenaResultHelper.read(arg1);
            this.myRank = arg1.readInt();
            return;
        }

        public /* const */_type: int=148;

        public /* var */query: SArenaQuery;

        public /* var */totalCount: int;

        public /* var */results: Array<any>;

        public /* var */myRank: int;

        public static /* var */_regist: SArenaQueryResult;
    }

            SArenaQueryResult._regist = new SArenaQueryResult(true);
        